<template>
	<view>没用的动作列表</view>
</template>

<script>
	export default {
		data() {
			return {
				menus:['全部','胸部','背部','肩部','手部','颈部','腹部','腰部','臀部','腿部','全身','躯干'],
				currentIndex:0,
				search: '',
			}
		},
		onLoad() {
      
		},
		onReady() {
			
		},
		methods: {
			async getData() {
				let {data: {datas}} = await this.$myRuquest({
					url: "/coach/training/getActionList",
					data: {
						actionLabelPO: this.menus[currentIndex],
						actionParts: '',
						name: this.search,
					}
				})
			},
			searchInput() {
				
			},
			menusClick(index){
				console.log(index)
				this.currentIndex = index
				this.income_type = this.currentIndex + 1
				this.setAjax()
			},
			jump(e){
				console.log(e.currentTarget.dataset.src)
				if ( e.currentTarget.dataset.src == 'Not-yet-open') {
					uni.showModal({
						title:'提示',
						content:'功能即将开放',
						showCancel: false,
						confirmColor:"#DD524D",
							success() {
								return
							}
					})
				} else {
					uni.navigateTo({
						url: e.currentTarget.dataset.src
					});
				}
			},
			
		}
	}
</script>

<style>
	.active {border-bottom: 5upx solid #4189E6;}
</style>
